<template>
    <div class="recordG">
        <h1>出入报备记录</h1>
        <div class="GForm">
            <el-table :data="tableData" style="width: 100%">
                <el-table-column fixed prop="date1" label="日期" width="120">
                </el-table-column>
                <el-table-column fixed prop="date2" label="时间" width="110">
                </el-table-column>
                <el-table-column prop="name" label="姓名" width="100">
                </el-table-column>
                <el-table-column prop="phone" label="联系电话" width="130">
                </el-table-column>
                <el-table-column prop="address" label="小区住址" width="130">
                </el-table-column>
                <el-table-column prop="region" label="目的地" width="150">
                </el-table-column>
            </el-table>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            tableData: []
            // tableData:[{
            //     date1: '',
            //     data2:'',
            //     name: '',
            //     phone:'',
            //     address: '',
            //     region: ''
            // }]
        }
    },
    created() {
        this.tableData.push(JSON.parse(this.$route.query.getG ? this.$route.query.getG : ''))
    },
}
</script>

<style scoped>
.recordG {
    padding: 20px;
}

.recordG h1 {
    margin: 0 50px 30px 0;
}

.recordG .GForm {
    margin: 0 auto;
    width: 740px;
}
</style>